<template>
  <div>
    <h1>{{ title }}--count :{{ count }}</h1>
    <button @click="changeCount">改变值</button>
  </div>
</template>

<script>
// 引入混入
import count from "@/Mixin/Count";
export default {
  name: "One",
  data() {
    return {
      title: "One",
    };
  },
  // 接收数据
  mixins: [count],
  mounted() {
    console.log("One");
  },
};
</script>

<style></style>
